package com.claimSettlement.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 出险实体
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Case implements Serializable {
  @TableId("caseId")
  //报案编号，例如case_2019010100001
  private String caseId;
  //保单编号，例如 bd_2019010100001
  private String warrantyId;
  //出险时间
  private String dangerTime;
  //车险地点所在省份
  private String location;
  //出险地点所在市
  private String city;
  //出险地点所在县/区
  private String county;
  //出险所在详细地址
  private String fullAddress;
  //出险经过
  private String dangerPass;
  //出险原因
  private String dangerCause;
  //报案人
  private String informants;
  //出险司机
  private String driver;
  //司机电话
  private String driverMob;
  //报案时间
  private String reportCaseTime;
  //立案时间
  private String filingTime;
  //结案时间
  private String closeCaseTime;
  //案件状态(1.已报案 2.已立案 3.已结案)
  private Integer caseState;
  //案件处理(1.受理 2.暂存 3.注销)
  private Integer caseHandling;
  //保单对象
  private Warranty warranty;
  //被保人
  private String recognizeeName;
  //车牌号
  private String plateNumber;
  //查勘开始时间
  @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
  private Date dispatchedWorkerTime;
  //查勘结束时间
  @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
  private Date dispatchedWorkerEndTime;
}
